﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace REPORT.DTO
{
    public class DTO_CHITIETHOADON
    {
         #region Khai bao thuoc tinh

        private int _maHoaDon;        
        private int _maSanPham;        
        private int _soLuong;        
        private float _donGia;
        private string _donViTinh;
                
        #endregion

        #region Khai bao phuong thuc
        public int MaHoaDon
        {
            get { return _maHoaDon; }
            set { _maHoaDon = value; }
        }
        public int MaSanPham
        {
            get { return _maSanPham; }
            set { _maSanPham = value; }
        }
        public int SoLuong
        {
            get { return _soLuong; }
            set { _soLuong = value; }
        }
        public float DonGia
        {
            get { return _donGia; }
            set { _donGia = value; }
        }
        public string DonViTinh
        {
            get { return _donViTinh; }
            set { _donViTinh = value; }
        }
        #endregion

        #region Khai bao khoi tao
        public DTO_CHITIETHOADON()
        { }
        public DTO_CHITIETHOADON(int maHD, int maSP, int soLuong, float donGia, string donViTinh )
        {            
            this.MaHoaDon = maHD;
            this.MaSanPham = maSP;
            this.SoLuong = soLuong;
            this.DonGia = donGia;
            this.DonViTinh = _donViTinh;
        }

        public DTO_CHITIETHOADON(DTO_CHITIETHOADON obj)
        {
            this.MaHoaDon = obj.MaHoaDon;
            this.MaSanPham =obj.MaSanPham;
            this.SoLuong = obj.SoLuong;
            this.DonGia = obj.DonGia;
            this.DonViTinh = obj.DonViTinh;
        }
        #endregion
    }
}
